package com.dao.intf;

import com.entity.Draft;

import java.util.List;

public interface DraftDao {

//    //通过用户id和内容来查草稿表的id
//    public int queryDraftId(Integer userId, String draft);

    //查询所有草稿
    public List<Draft> queryDraftByUserId (Integer userId);

    //查看某一篇草稿
    public Draft querySingleDraftByDraftId  (Integer draftId);

    //保存草稿
    public int saveDraft (Integer userId, String draft);

    //发布草稿
    public int releaseDraft (Integer draftId);
}
